import Vue from 'vue'
import Router from 'vue-router'

import users from "../components/users";
import depts from "../components/depts";

Vue.use(Router)

export default new Router({
  routes: [
    /*{
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    }*/
    {path: '/',name: 'index',redirect:'/users'},
    {path:"/users",name:"users",component:users},
    {path:"/depts",name:"depts",component:depts},
  ]
})
